//
//  LMRTabsScrollView.h
//  EditTabDemo
//
//  Created by 李浩源 on 2021/2/28.
//  Copyright © 2021 lhy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "LMRTabsView.h"

NS_ASSUME_NONNULL_BEGIN

@interface LMRTabsScrollView : UIScrollView

@property (nonatomic, strong) LMRTabsView *tabsView;
/// +添加文件
@property (nonatomic, strong) LMRTabsView *tabAddFileView;

@property (nonatomic, copy) void (^tabsAddBlock)(NSInteger index, NSInteger dataCount);
@property (nonatomic, copy) void (^tabsOpenBlock)(void);
@property (nonatomic, copy) void (^tabsSelectedBlock)(NSInteger index, NSInteger dataCount);
@property (nonatomic, copy) void (^tabsDeleteBlock)(NSInteger index, NSInteger dataCount);

/// 增加
- (void)tabAdd;
/// 选中
- (void)tabSelectedWithIndex:(NSInteger)index;
/// 删除
- (void)tabDeleteWithTag:(NSInteger)tagValue;
/// 删除所有
- (void)tabDeleteAll;

- (void)updateTabsScrollViewWithCount:(NSInteger)count;

/// 根据数据初始化
- (void)initTabsScrollViewWithData:(NSMutableArray *)dataArr;

@end

NS_ASSUME_NONNULL_END
